package com.shaw.study.springx.beans;

import java.lang.reflect.Method;
import java.util.regex.Pattern;

/**
 * Created by asus on 2018/5/6.
 */
public class AopConfigDefinition {
    private Pattern pointCut;
    private Method beforeAspect;
    private Method afterAspect;

    public AopConfigDefinition(Pattern pointCut, Method beforeAspect, Method afterAspect) {
        this.pointCut = pointCut;
        this.beforeAspect = beforeAspect;
        this.afterAspect = afterAspect;
    }

    public Pattern getPointCut() {
        return pointCut;
    }

    public void setPointCut(Pattern pointCut) {
        this.pointCut = pointCut;
    }

    public Method getBeforeAspect() {
        return beforeAspect;
    }

    public void setBeforeAspect(Method beforeAspect) {
        this.beforeAspect = beforeAspect;
    }

    public Method getAfterAspect() {
        return afterAspect;
    }

    public void setAfterAspect(Method afterAspect) {
        this.afterAspect = afterAspect;
    }
}
